﻿using QG.FrontDesk.Core;
using QG.FrontDesk.DAL.IRepository;
using QG.FrontDesk.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QG.FrontDesk.DAL.Repository
{
    public class IndustryRepository : IIndustryRepository
    {
        /// <summary>
        /// 获取所有行业领域
        /// </summary>
        /// <returns></returns>
        public List<Industry> GetIndustries()
        {
            string sql = "SELECT * FROM industry";
            return DapperDBHelper<Industry>.QueryList(sql, null);
        }
    }
}
